const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token, // 映射token
  userId: state => state.user.userInfo.id, // 映射userInfo
  username: state => state.user.userInfo.username,
  avatar: state => state.user.userInfo.avatar
}
export default getters
